package com.client.service.Impl;

import com.client.pojo.Order;
import com.client.service.OrderService;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Component
public class OrderServiceFallback implements OrderService {
    @Override
    public ResponseEntity<Order> createOrder(Order order) {
        System.out.println(" 创建订单出错 ");
        return null;
    }

    @Override
    public ResponseEntity<Order> getOrderById(String orderId) {
        return null;
    }

    @Override
    public ResponseEntity<List<Order>> listOrdersByUserId(String userId) {
        return null;
    }

    @Override
    public ResponseEntity<Void> updateOrderStatus(String orderId, Integer newStatus) {
        return null;
    }

    @Override
    public ResponseEntity<Void> deleteOrder(String orderId) {
        return null;
    }

    @Override
    public ResponseEntity<Boolean> payOrder(String orderId) {
        System.out.println(" 限流啦。。。。。。。。。。。。 ");
        return null;
    }
}
